package com.calvin.study.entity;

import java.io.Serializable;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class UserEntity implements Serializable {

	private Integer userCode;

	private String userId;

	private String userName;

	private String nickName;

	public volatile int age;

	public UserEntity(Integer userCode) {
		this.userCode = userCode;
	}

	public UserEntity(String userId, String nickName) {
		this.userId = userId;
		this.nickName = nickName;
	}

	public UserEntity() {
	}
}
